package com.qiche.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.qiche.model.CarBrand;
import com.qiche.model.CarFactory;
import com.qiche.model.CarLine;
import com.qiche.model.CarModel;
import com.qiche.model.CarYear;

/**
 * Created by Linzw on 2018/01/24.
 */
public interface CarBrandService extends IService<CarBrand>{
    PageInfo<CarBrand> selectByPage(CarBrand brand, int start, int length);
    CarBrand selectById(Long id);
	List<CarBrand> selectAll();
	List<CarBrand> GetPopularBrands();
	List<CarBrand> GetBrandByFirstLetter(String firstLetter);
	List<CarLine> GetLinesByBrandId(Long brandId);
	List<CarFactory> GetFactorysByBrandId(Long brandId);
	List<CarYear> GetYearsByLineId(Long lineId);
	List<CarModel> GetModelsByYear(Long lineId, String year);

}
